package org.drushpal.view.forms
{
	import flash.events.Event;
	
	import org.drushpal.model.vo.Connection;
	
	public class ConnectionEvent extends Event
	{
		
		public static const ADD_CONNECTION:String = "addConnection";
		public static const SAVE_CONNECTION:String = "saveConnection";
		public static const REMOVE_CONNECTION:String = "removeConnection";
		public static const LAUNCH_CONNECTION:String = "launchConnection";
		public static const EDIT_CONNECTION:String = "editConnection";
		
		public var connection:Connection;
		
		public function ConnectionEvent(type:String, bubbles:Boolean=false, cancelable:Boolean=false, con:Connection=null)
		{
			if(con) connection = con;
			super(type, bubbles, cancelable);
		}
	}
}